<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.10.2.min.js"></script>
</head>
<body>
<!--main-header start-->
<div class="main-header">
    <div class="w-1200 clearfix">
        <div class="header-logo fl"><a href=""><img src="images/logo.png"></a> </div>
        <!--header-person start-->
        <div class="header-person fr">
            <div id="head_login"></div>
            <script type="text/javascript">
              
              $("#head_login").load("login_common.html");
            </script>
        </div>
        <!--header-person end-->
        <!--header-nav start-->
        <div class="header-nav fr">
            <ul class="nav">
                <li><a href="/user1.html">用户列表</a> </li>
                <li><a href="/user4.html">新增用户</a> </li>
            </ul>
        </div>
        <!--header-nav end-->
    </div>
</div>
<!--main-header end-->
<!--user-profile start-->
<div class="user-profile w-1200">
    <div class="user-profile-box">
        <div class="user-profile-li clearfix">
            <div class="li-label">类型：</div>
            <div class="li-txt" id="type"></div>
        </div>
        <div class="user-profile-li clearfix">
            <div class="li-label">账号：</div>
            <div class="li-txt" id="account">15896357420</div>
        </div>
        <div class="user-profile-li clearfix jg">
            <div class="li-label">信用代码证：</div>
            <div class="li-txt" id="xydmz"></div>
        </div>

        <div class="user-profile-li clearfix">
            <div class="li-label" id="name">机构名称：</div>
            <div class="li-txt" id="displayname">这里先天工作单位</div>
        </div>
        <div class="user-profile-li clearfix jg">
            <div class="li-label">负责人：</div>
            <div class="li-txt" id="owner">某某某</div>
        </div>
        <div class="user-profile-li clearfix">
            <div class="li-label">手机号：</div>
            <div class="li-txt" id="phone">13683801224</div>
        </div>
        <div class="user-profile-li clearfix">
            <div class="li-label">地址：</div>
            <div class="li-txt" id="address">这里显示地址这里显示地址这里显示地址这里显示地址</div>
        </div>
        <!-- <div class="user-profile-li clearfix">
            <div class="li-label">评审类型：</div>
            <div class="li-txt" >评审专家</div>
        </div> -->
        <div class="user-profile-li clearfix pslevel">
            <div class="li-label">评审等级：</div>
            <div class="li-txt" id="level"></div>
        </div>
        <div class="user-profile-li clearfix">
            <div class="li-label">状态：</div>
            <div class="li-txt" id="status">正常</div>
        </div>
        <div class="user-profile-li clearfix">
            <div class="li-label">添加时间：</div>
            <div class="li-txt" id="addtime">2021-10-22</div>
        </div>

        <div class="user-profile-li clearfix" id="goods">
            <div class="li-label">擅长领域</div>
            <div class="li-txt" id="good"></div>
        </div>


        <div class="user-profile-li clearfix">
            <div class="li-label" id="u">单位简介：</div>
            <div class="li-txt" id="desc">这里需要显示文字简介这里需要显示文字简介这里需要显示文字简介这里需要显示文字简介这里需要显示文字简介这里需要显示文字简介
                这里需要显示文字简介这里需要显示文字简介</div>
        </div>

    </div>
</div>
<!--user-profile end-->
<script src="js/auth.js"></script>
<script>
var userid = getQueryString2("id");
if(userid){

    $.get("api/Auth/getuser?id="+userid,function(res){

        if(res.code=200){
            var user = res.result.user;

            $("#type").html(getusertype(user.type));
            $("#account").html(user.userAccount);
            $("#xydmz").html(user.xydmz);
            $("#displayname").html(user.displayname);

            $("#owner").html(user.owner);

            $("#phone").html(user.phone);
            $("#address").html(user.address);

            $("#level").html(user.approve_level);
            $("#good").html(user.good);

            $("#desc").html(user.description);


            if(user.type ==0 || user.type==5){
                //jg
                $("#name").html("机构名称");
                $("#u").html("单位简介");
                $(".jg").show();
            }else{
                $("#u").html("个人简介");
                $("#name").html("姓名");
                $(".jg").hide();
            }


            if(user.type ==4 || user.type==5){
                //jg

                $(".pslevel").show();
                $("#goods").show();
            }else{
                $("#goods").hide();
                $(".pslevel").hide();
            }





        }








    });




}

</script>







</body>
</html>
